package chap4.Task1;

public class Task10 {
    public static void main(String[] args) {
        int i;
        double sum=0;
        for(i=1;i<=1000;i++){
            sum+=1.0/(i*i);

    }
        System.out.println("1+1/2^2+1/3^2+1/4^2..+1/n^2="+sum);


    }
}
